home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / zkf102.zip / what.bat < prev    next >
DOS Batch File  |  1995-01-04  |  775b  |  14 lines

  1. @zkbat what
  2. // This looks at all the filenames in the current directory, gets the
  3. // filename extension of each, sorts them, filters out duplicates, and
  4. // writes the result in 20 4-character columns.  There will usually be
  5. // less than 20 extensions, so the output will usually be one line, with
  6. // just some of the 20 columns occupied.
  7. // The purpose of this is to show you all the filename extensions that
  8. // exist in the current directory without requiring you to look at all
  9. // the filenames.  If the output seems "tabulated", i.e., if the first
  10. // 3-character extension output is blank, that means there are one or
  11. // more filenames that have no extension at all, which is considered a
  12. // blank extension.
  13. write(cols(20,4,uniq(sort(exts(globm("*.*"))))));
  14.